package com.appkubes.fintech.restful.application.credit.service;


import com.appkubes.fintech.common.response.Response;
import com.appkubes.fintech.core.po.FintechCredit;
import com.appkubes.fintech.restful.application.credit.dao.CreditDao;

/**
 * @Author: Rongjie
 * @Date: 2020-01-05
 * @Description: 信用租赁服务
 */
public interface CreditService {

    CreditDao getCreditDao();


    /**
     * 获取用户的信用额度
     *
     * @param userKey
     * @return
     */
    FintechCredit getCredit(String userKey);

    public Response<FintechCredit> initCredit(String userKey, Integer amt);
    /**
     * @Date 2020/2/17 12:26 额度冻结
     * @Author XQC
     * @Description
     */
    public Response<FintechCredit> frozenCredit(String userKey, Integer amt);

    public Response<FintechCredit> unfrozenCredit(String userKey, Integer amt);

    public Response<FintechCredit> unOutfrozenCredit(String userKey, Integer amt);

    public Response<FintechCredit> recoverCredit(String userKey, Integer amt);

    /*
     * @Author xqc 判断用户拒绝是否失效
     * @Description
     * @Date 14:21 2020/3/31
     * @Param
     * @return
     **/
    public Boolean isRefuseExpire(String userKey);
    public Integer refuseExpireLeftDays(String userKey);
}
